PreviousNextTracker indexSee it online !

(233/330) 1538 - Sidekick 1.2 does not remember my parser

A Sidekick parser is associated to an edit mode ( javascript ), the parser from XML plugin.
If I choose another parser for my file, juste after parsing the parser goes on "none"

Submitted kpouer - 2012-01-28 08:48:17 Assigned ezust
Priority 6 Labels
Status pending Group None
Resolution fixed

Comments

2012-05-21 11:13:28
jarekczek

Matthieu, this could be due to the bug in the plugin you were working on (new javascript sidekick). I cannot reproduce it. However I see that the manually selected parser is lost after buffer switching.

Here is the code that introduces the problem. Maybe Dale could check if it can be safely removed?

18729 daleanson //{{{ handleBufferChange() method
18729 daleanson @EBHandler
18729 daleanson public void handleBufferChange(BufferChanging bmsg) {
18729 daleanson buffer = bmsg.getBuffer();
18729 daleanson buffer.setProperty(SideKickPlugin.PARSER_PROPERTY, null);
18729 daleanson } //}}}

2012-05-21 11:13:28
jarekczek

- **summary**: Sidekick 1.2 do not remember my parser --> Sidekick 1.2 does not remember my parser
- **assigned_to**: nobody --> daleanson
- **priority**: 8 --> 6

2012-06-19 18:13:53
ezust

It's actually damien's patch which introduced this bug, so I am assigning to him.

2012-06-19 18:13:53
ezust

- **assigned_to**: daleanson --> kog13

2012-06-19 18:14:16
ezust

Introduced by patch 3081956

2012-06-20 16:46:24
ezust

my previous comment was incorrect, the patch was not responsible but a line added by dale.
ok, I will try removing the buffer.setMode(xxx, null) and start testing sidekick with that.

2012-06-20 16:46:24
ezust

- **assigned_to**: kog13 --> ezust

2012-06-20 16:48:21
ezust

nuts, its more complicated than that. Assigning back to dale.

2012-06-20 16:48:21
ezust

- **assigned_to**: ezust --> daleanson

2012-06-20 16:52:45
ezust

Committed 21843 which seems to work for me.

2012-06-20 16:52:45
ezust

- **assigned_to**: daleanson --> ezust
- **status**: open --> pending-fixed